﻿using System.Collections.Generic;
using BLWCMS.Core.Models;

namespace BLWCMS.Core.IBusiness
{
    public interface IAdminBusiness
    {
        /// <summary>
        /// 添加
        /// </summary>
        /// <param name="adminModel"></param>
        /// <returns></returns>
        string Add(AdminModel adminModel);

        /// <summary>
        /// 编辑
        /// </summary>
        /// <param name="adminModel"></param>
        /// <returns></returns>
        string Edit(AdminModel adminModel);

        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        string Del(int id);

        /// <summary>
        /// 列表
        /// </summary>
        /// <returns></returns>
        List<AdminModel> GetList();

        /// <summary>
        /// 单个模型
        /// </summary>
        /// <returns></returns>
        AdminModel GetModel(int id);
    }
}
